import { connect } from 'react-redux'
import { makeRegister, makeActivate } from '../actions'
import Register from '../components/Register'


const mapStateToProps = state => ({
    error: state.profile.error,
    shouldActivate: state.profile.shouldActivate,
    activateComplete: state.profile.activateComplete
})




export default connect(
  mapStateToProps,
    { makeRegister, makeActivate}
)(Register)

